package top.songxs.gmall.product.rpc.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.songxs.gmall.product.entity.SpuSaleAttr;
import top.songxs.gmall.product.mapper.SpuSaleAttrMapper;
import top.songxs.gmall.product.rpc.biz.SpuSaleAttrRpcService;

import java.util.List;

@Service
public class SpuSaleAttrRpcServiceImpl implements SpuSaleAttrRpcService {
    @Autowired
    private SpuSaleAttrMapper spuSaleAttrMapper;
    @Override
    public List<SpuSaleAttr> findSpuSalAttrAndValueBySkuId(Long skuId) {
        return spuSaleAttrMapper.findSpuSalAttrAndValueBySkuId(skuId);
    }
}
